<?php include "top.php"; ?>
 <?php
		 $nid=make_safe($_GET["nid"]); 
		 $BigClassName=make_safe($_GET["BigClassName"]); 
		 if($nid==""){$nid=1;}
		 
		if($nid==1){$nidname="公司樣本";}
		 if($nid==2){$nidname="禮服";}
		 if($nid==3){$nidname="客戶";}
		 
		 
		?>
      <div id="top-3">
        <div id="m-text-1">
        <table border="0" cellpadding="0" cellspacing="0" class="tab-5">
   <tr>
     <td valign="top"><div class="tab-5-tit">主功能列表</div>
     <div class="m-text-2_btn"><a href="category.php?nid=<?php echo $nid;?>">作品分類管理</a></div>
     
        <div class="tab-5-tit">相簿管理</div>
      
	 
	 <?php
  $n=1;

  $sql="select * from product_type_big where nid='$nid' order by orderid  ";			
	$result=mysql_query($sql);
	while ($row=mysql_fetch_object($result)){
	?>
     <div class="m-text-2_btn"><a href="working.php?nid=<?php echo $nid;?>&BigClassName=<?php echo urlencode($row->BigClassName);?>"><?php echo $row->BigClassName;?></a></div>
     <?php }?>
       </td>
   </tr>
   </table>
        </div>
        <div id="m-text-2_banner">
          <ul>
        
            <li>/ </li>
            
            <li>培豪作品管理->修改</li>
          </ul>
        </div><div id="m-text-2"></td>
   </tr>
   </table>
   
   
   
   
      <?php 
   $id=make_safe($_GET["id"]); 
   $nid=make_safe($_GET["nid"]); 
   $action=make_safe($_GET["action"]);
   
  

   $content=make_safe($_POST["content"]);
   
   $addtime=$data3;
   
 
   
   
   
   if($action=="xiugai"){
   
 
if($query=mysql_query("update target set  content='$content',addtime='$addtime' where id='$id'"))

{
   echo "<script>alert('資料修改成功！');window.location.href='target.php?BigClassName=".urlencode($BigClassName)."&title=".urlencode($title)."&nid=".$nid."&page=".$page."';</script>";
 }
 
 else
  {
   echo "<script>alert('資料修改失敗！');window.location.href='product2.php?BigClassName=".urlencode($BigClassName)."&title=".urlencode($title)."&nid=".$nid."&page=".$page."';</script>";
  }

   
    
   
  }
  
   ?>
   
   

   
   
   
   <?php 
   $id=make_safe($_GET["id"]); 
	 $sql="select * from target where id='$id' ";			
	 $result=mysql_query($sql);
	 while ($row=mysql_fetch_object($result)){
	 ?>
        <form name="form1" action="?action=xiugai&id=<?php echo $row->id;?>&nid=<?php echo $row->nid;?>" method="post" enctype="multipart/form-data" target="_self">
        
        <table border="0" cellpadding="0" cellspacing="0" class="m-text-2-imp">
		
		

          <tr>
            <td class="m-text-2-con2">相簿名稱：
             
            <input type="text" name="content" value="<?php echo $row->content;?>" >
              </td>
            
          </tr>
		  
		 
		  
		
		  
		  
		  
		  <tr>
            <td class="m-text-2-con2"><div align="center">
              <input type="submit" name="Submit" value="提交修改">
            </div></td>
            
          </tr>
        </table>
        </form>
		<?php }?>
		
		
		
		
        </div>
      </div>
    </div>
  </div>
</div>
<div id="botton"><div id="copyright"><table border="0" cellpadding="0" cellspacing="0" class="copy">
  <tr>
    <td>© COPYRIGHTS 2010 INC. APARTMENT STUDIO All rights reserved.</td>
  </tr>
</table>
</div></div>
</body>
</html>